package cn.layfolk.seckill.service;

import cn.layfolk.seckill.domain.TSeckillGoods;
import cn.layfolk.seckill.vo.SeckillGoodsVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-01-10
 */
public interface TSeckillGoodsService extends IService<TSeckillGoods> {

    SeckillGoodsVo findByIdInCache(Long seckillId);

    Integer decrStockCount(TSeckillGoods vo);

    SeckillGoodsVo findById(Long seckillId);

    Integer incrStockCount(Long seckillId);

    List<SeckillGoodsVo> query();
    List<SeckillGoodsVo> queryByCache();

}
